#include "Graph.h"
#include "Stripped_rectangle.h"

namespace Graph_lib{

void Stripped_rectangle::draw_lines() const{
    
    if (color().visibility()) {    // lines on top of fill
        int x1 = point(0).x;
        int x2 = x1+width();
        int y1 = point(0).y;
        int y2 = y1+height();

        fl_color(color().as_int());

        for (int yy=y1;yy<y2;yy+=2)
            fl_line(x1,yy,x2,yy);
    }
}
}
